package bam.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Binding entity. @author MyEclipse Persistence Tools
 */

public class Binding implements java.io.Serializable {

	// Fields

	private Integer id;
	private Area area;
	private Users users;
	private Areainfo areainfo;
	private Date bindingTime;
	private String account;
	private String accountPwd;
	private Integer online;
	private String typeExplain;
	private Set userinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Binding() {
	}

	/** minimal constructor */
	public Binding(Area area, Users users, Date bindingTime) {
		this.area = area;
		this.users = users;
		this.bindingTime = bindingTime;
	}

	/** full constructor */
	public Binding(Area area, Users users, Areainfo areainfo,
			Date bindingTime, String account, String accountPwd,
			Integer online, String typeExplain, Set userinfos) {
		this.area = area;
		this.users = users;
		this.areainfo = areainfo;
		this.bindingTime = bindingTime;
		this.account = account;
		this.accountPwd = accountPwd;
		this.online = online;
		this.typeExplain = typeExplain;
		this.userinfos = userinfos;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Areainfo getAreainfo() {
		return this.areainfo;
	}

	public void setAreainfo(Areainfo areainfo) {
		this.areainfo = areainfo;
	}

	public Date getBindingTime() {
		return this.bindingTime;
	}

	public void setBindingTime(Date bindingTime) {
		this.bindingTime = bindingTime;
	}

	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getAccountPwd() {
		return this.accountPwd;
	}

	public void setAccountPwd(String accountPwd) {
		this.accountPwd = accountPwd;
	}

	public Integer getOnline() {
		return this.online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}

	public String getTypeExplain() {
		return this.typeExplain;
	}

	public void setTypeExplain(String typeExplain) {
		this.typeExplain = typeExplain;
	}

	public Set getUserinfos() {
		return this.userinfos;
	}

	public void setUserinfos(Set userinfos) {
		this.userinfos = userinfos;
	}

}